package com.heart.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class QuestionDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value="tc_detail_id",type = IdType.AUTO )
    private Integer detailId;
    /**
     * 问卷id
     */
    private Integer questionId;
    /**
     * 题号
     */
    private Integer indexOrder;
    /**
     * 名称
     */
    private String caption;
    /**
     * 题目类型choice、multiple-choice、fill-blank、explain
     */
    private String questionType;
    /**
     * 下一个问卷题主键
     */
    private Integer nextDetailId;
    /**
     * 默认值
     */
    private String defualtValue;
    /**
     * 是否必填1必填0不必填
     */
    private String required;
    /**
     * 索引
     */
    private Integer no;
    /**
     * 选项List
     */
    @TableField(select = false, insertStrategy = FieldStrategy.NEVER)
    private List<QuestionDetailItem> questionDetailItemList;
    /**
     * 逻辑选择List
     */
    @TableField(select = false, insertStrategy = FieldStrategy.NEVER)
    private List<QuestionLogic> questionLogicList;

}
